<template>
    <div class="header">
        <div class="header-left">
            <span class="iconfont back-icon">&#xe624;</span>
        </div>
        <div class="header-input">
            <span class="iconfont search-icon">&#xe632;</span>
            输入城市/景点/游玩主题
        </div>
        <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="iconfont arrow-icon">&#xe64a;</span>
            </div>
        </router-link>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style scoped lang="stylus">
    @import '~styles/variables.styl'
    .header
        display: flex
        line-height: .86rem
        background-color: $bgcolor
        color: #fff
        height: 0.86rem
        font-size: 0
        .header-left
            font-size: 0.24rem
            width: .64rem
            float: left
            text-align: center
            .back-icon
                font-size 0.36rem
        .header-input
            font-size: 0.24rem
            flex: 1
            height: 0.62rem
            background-color: #ffffff
            border-radius: 0.1rem
            line-height: 0.62rem
            margin: .12rem 0 0.12rem 0.2rem
            color: #ccc
            text-indent: 0.3rem
            .search-icon
                font-size 0.24rem
                text-align: center
        .header-right
            color: #ffffff
            font-size: 0.28rem
            min-width: 1.04rem
            padding: 0 0.1rem
            float: right
            text-align: center
            height: 0.86rem
            .arrow-icon
                font-size: 0.24rem
</style>
